# -*- coding: utf-8 -*-

"""
@author: 猿小天
@contact: QQ:1638245306
@Created on: 2021/6/1 001 22:47
@Remark: 自定义序列化器
"""

from rest_framework.serializers import ModelSerializer
from dvadmin.utils.serializers import CustomModelSerializer

from ops.devops.models import Cdn, Ref


class CdnSerializer(CustomModelSerializer):
    """
    devops-序列化器
    """

    class Meta:
        model = Cdn
        fields = '__all__'
        read_only_fields = ["id"]


class RefSerializer(CustomModelSerializer):
    """
    devops-序列化器
    """

    class Meta:
        model = Ref
        fields = '__all__'
        read_only_fields = ["id"]
